#ifndef UCustomWindowH
#define UCustomWindowH
#include "stdafx.h"
#include "ULeafWindow.h"

class TCustomWindow
{
private:
	friend class TWindowManager;
	void setParent(TLeafWindow* parent);
public:
	bool Is3d;
	int MinWidth, MinHeight;

	TLeafWindow* Parent;
	TCustomWindow(bool is3d = false);
	TCustomWindow(TLeafWindow* parent, bool is3d = false);
	virtual void Draw() = 0;
	virtual void MouseMove	(int X, int Y, int mstate);
	virtual void MouseDown	(int X, int Y, uint8 button);
	virtual void MouseUp	(int X, int Y, uint8 button);
	virtual void KeyDown	(SDL_KeyboardEvent* Key);
	virtual void KeyUp		(SDL_KeyboardEvent* Key);
	virtual void MouseLeave	();
	
	virtual void resize(int w, int h);

	bool IsFocussed();
};

#endif
